package com.fang.guilimall.admin.api.controller.app;

import com.fang.gulimall.admin.common.core.base.BaseController;
import com.fang.gulimall.admin.common.core.dto.ResponseDTO;
import lombok.AllArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AppController
 * @Description TODO
 * @Author fangge
 * @Date 2024/6/13 23:19
 */
@RestController
@RequestMapping("/app")
@AllArgsConstructor
public class AppController extends BaseController {

    /**
     * 访问首页，提示语
     */
    @PreAuthorize("hasAuthority('annie')")
    @GetMapping("/list")
    public ResponseDTO<?> appLogin() {
        return ResponseDTO.ok();
    }
}
